/**
 * <B>仉乾乐</B><BR>
 * <B>系统名称：spring cloud 搭建学习</B><BR>
 * <B>模块名称：hello-service-api</B><BR>
 * <B>中文类名：</B><BR>
 * <B>概要说明：</B><BR>
 * @author zhangql
 * @since 2018年12月27日
 */
package com.lele.org.service;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.lele.org.entity.User;
/**
 * 为了同前面那个hello接口分开，我们加了refactor前缀
 */
@RequestMapping("/refactor")
public interface HelloService {

	@GetMapping("/hello2")
	public String hello2();
	
	@PostMapping("/hello3")
	public User printUser(@RequestBody User user);
}
